﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Progress"
	x:Class="EIA.SLClient.ProjectManage.Progress.DelayApplyEditView"
	d:DesignWidth="360" d:DesignHeight="480">
	<UserControl.Resources>
		<local:DelayApplyEditViewModel x:Key="DelayApplyEditViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource DelayApplyEditViewModelDataSource}}">
		<Grid Background="#19000000" Visibility="{Binding IsShow, Converter={StaticResource Bool2VisibilityConverter}}">
			<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="260" Height="240" Background="#FFEBEBEB">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="94"/>
					<ColumnDefinition/>
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="24"/>
					<RowDefinition Height="Auto" MinHeight="32"/>
					<RowDefinition Height="Auto" MinHeight="32"/>
					<RowDefinition/>
					<RowDefinition Height="40"/>
				</Grid.RowDefinitions>
				<Grid Background="#FF888888" Grid.ColumnSpan="2">
					<TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" TextWrapping="Wrap" Text="{Binding TitleTip}" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
				</Grid>
				<TextBlock Margin="0" Grid.Row="1" TextWrapping="Wrap" Text="原预计完成时间" d:LayoutOverrides="Height" HorizontalAlignment="Right" VerticalAlignment="Center"/>
				<TextBlock Margin="0" Grid.Row="2" TextWrapping="Wrap" Text="延迟天数" HorizontalAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
				<TextBlock Margin="0" Grid.Row="3" TextWrapping="Wrap" Text="说明" HorizontalAlignment="Right" VerticalAlignment="Center"/>
				<TextBox Grid.Column="1" Margin="8,8,0,8" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Center" Width="90" HorizontalAlignment="Left" Text="{Binding Model.OrginalScheduled, StringFormat='yyyy-MM-dd', Mode=TwoWay}" IsReadOnly="True"/>
				<TextBox Grid.Column="1" Margin="8,8,0,8" Grid.Row="2" TextWrapping="Wrap" Width="90" HorizontalAlignment="Left" d:LayoutOverrides="Height" Text="{Binding Model.DlyDays, Mode=TwoWay}"/>
				<TextBox Grid.Column="1" Margin="8,8,0,8" Grid.Row="3" TextWrapping="Wrap" Width="140" HorizontalAlignment="Left" Text="{Binding Model.DlyDes, Mode=TwoWay}"/>
				<HyperlinkButton Content="取消" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,18,0" Command="{Binding CancelCommand}"/>
				<HyperlinkButton Content="确定" Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" Margin="0,0,70,0" HorizontalAlignment="Right" Command="{Binding SaveCommand}"/>
			</Grid>
		</Grid>
	</Grid>
</UserControl>
